package com.exam.sacrifice.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.exam.sacrifice.R;
import com.exam.sacrifice.ui.bean.BaiJiaXingInfo;
import com.exam.sacrifice.util.GlideUtil;
import com.makeramen.roundedimageview.RoundedImageView;

public class LiShiMingRenAdapter extends BaseQuickAdapter<BaiJiaXingInfo, BaseViewHolder> {

    public LiShiMingRenAdapter() {
        super(R.layout.item_layout_lishimingren, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, BaiJiaXingInfo item) {

        helper.setText(R.id.tv_name, item.name);
        RoundedImageView avatar = helper.getView(R.id.iv_avatar);
        GlideUtil.loadImage(helper.itemView.getContext(), "https://i2.hdslb.com/bfs/archive/d997850784ba2e146821a6b412a871ee4f8ee15e.jpg", avatar);
    }
}
